<%@ page import="com.wzy.Jdbc封装.pojo.News_comment" %>
<jsp:useBean id="comment" class="com.wzy.level.comment.commentServiceImpl.commentServiceImpl" />
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>增改数据命令传输站</title>
</head>
<body>
<%
    String sid = request.getParameter("id");
    String sstate = request.getParameter("state");
    if(sid!=null && sid!="" && sstate!=null && sstate!=""){
        int id = Integer.parseInt(sid);
        int state = Integer.parseInt(sstate);

        News_comment news_comment = comment.selectById(id);
        session.setAttribute("comment",news_comment);
        session.setAttribute("state",state);

        request.getRequestDispatcher("comment_form.jsp").forward(request,response);
    }
%>



















</body>
</html>
<%--<%--%>
<%--    String sid = request.getParameter("id");--%>
<%--    String sstate = request.getParameter("state");--%>
<%--    if(sid!=null && sid != "" && sstate!=null && sstate!=""){--%>
<%--        int id = Integer.parseInt(sid);--%>
<%--        int state = Integer.parseInt(sstate);--%>

<%--        News_comment news_comment = comment.selectById(id);--%>
<%--        session.setAttribute("comment",news_comment);--%>
<%--        session.setAttribute("state",state);--%>


<%--        request.getRequestDispatcher("comment_form.jsp").forward(request,response);--%>

<%--    }--%>

<%--%>--%>
